#!/bin/bash

if [ "$1" = "clean" ]; then
    $(rm -rf build/*)
    echo "--clean up--"
    exit 0
fi

mkdir -p build
pushd build

echo "cmake..."
cmake ../src

echo "make..."
make

popd